package com.workcell.workdata.im.component.holder;


public class UidHolder {

    private UidHolder(){}

    private static final ThreadLocal<Long> holder = new InheritableThreadLocal<>();

    public static Long getUid(){
        return holder.get();
    }


    public static void setUid(long uid){
        holder.set(uid);
    }

    public static void remove(){
        holder.remove();
    }
}
